			function valid(id)
			{
				var a = document.getElementById(id);
				var b = document.getElementById('lbl_' + id);
				if(a.value == null || a.value == "")
				{
					b.innerHTML = "<font color = 'red'>* field required</font>";
				}
				else	
				{
					if(b.innerHTML != "" || b.innerHTML != null);
					else
						b.innerHTML = "";
				}
				return;
			}
			function pwd()
			{
				var re = /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])\w{6,}$/; 
				var pw = document.getElementById('password');
				var validPassword = re.test(pw.value); 
				var lblpw = document.getElementById('lbl_password');
				if(validPassword)
				{
					lblpw.innerHTML = "<font color = 'green'>* valid</font>";
				}
				else	lblpw.innerHTML = "<font color = 'red'>* a-zA-Z0-9[6]</font>";
				return;	
			}
			function cpwd()
			{
				var pw = document.getElementById('password');
				var cpw = document.getElementById('cpassword');
				var lblcpw = document.getElementById('lbl_cpassword');
				if(pw.value == cpw.value)
				{
					lblcpw.innerHTML = "<font color = 'green'>* matched</font>";
				}
				else	lblcpw.innerHTML = "<font color = 'red'>* not matched</font>";
			}
			function mail()
			{
				var re = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
				var id = document.getElementById('email');
				var lblid = document.getElementById('lbl_email');
				var validmail = re.test(id.value);
				if(validmail)
					lblid.innerHTML = "<font color = 'green'>* valid</font>";
				else	lblid.innerHTML = "<font color = 'red'>* not valid</font>";
			}

